package com.beyondsoft.users.service;

import com.beyondsoft.common.core.model.Users;
import com.beyondsoft.common.core.model.dto.UsersDTO;
import com.beyondsoft.common.core.model.vo.UsersSearchVO;
import com.beyondsoft.common.core.model.vo.UsersVO;
import com.beyondsoft.common.core.util.PageBean;

import java.util.List;

/**
 * users 数据访问接口
 *
 * @author codeBuilder
 * @date 2019-12-5 11:17:00
 */
public interface IUsersService {

    /**
     * @param usersSearchVO
     * @return PageBean<Users>
     * @Description 分页查询Users
     * @date 2019-12-5 11:17:00
     * @author codeBuilder
     */
    PageBean<UsersDTO> page(UsersSearchVO usersSearchVO);

    /**
     * @param users
     * @return List<T>
     * @Description 根据条件查询Users 返回一个list集合
     * @date 2019-12-5 11:17:00
     * @author codeBuilder
     */
    List<Users> find(Users users);

    /**
     * @param id
     * @return Map<K, V>
     * @Description 根据Id查询Users
     * @date 2019-12-5 11:17:00
     * @author codeBuilder
     */
    UsersDTO findOne(Long id);

    /**
     * @param usersVO
     * @Description 添加Users
     * @date 2019-12-5 11:17:00
     * @author codeBuilder
     */
    void insert(UsersVO usersVO);

    /**
     * @param usersVO
     * @Description 修改Users
     * @date 2019-12-5 11:17:00
     * @author codeBuilder
     */
    void update(UsersVO usersVO);

    /**
     * @param id
     * @Description 删除Users
     * @date 2019-12-5 11:17:00
     * @author codeBuilder
     */
    void delete(Long id);

}


